package com.yuke.cloud.service.wmc.service.impl;

import com.yuke.cloud.service.wmc.dao.WmsPrinterMapper;
import com.yuke.cloud.service.wmc.entity.WmsPrinter;
import com.yuke.cloud.service.wmc.entity.WmsWarehouse;
import com.yuke.cloud.service.wmc.service.WmsPrinterService;
import com.yuke.cloud.common.core.support.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by wg on 2018/11/22.
 */
@Service
@Transactional
public class WmsPrinterServiceImpl extends BaseService<WmsPrinter> implements WmsPrinterService {
    @Resource
    private WmsPrinterMapper wmsPrinterMapper;

    @Override
    public List<Map> findallit() {
        List<Map> list=wmsPrinterMapper.findallit();
        return list;
    }

    @Override
    public List<Map> findAllbywarehouseid(Long id) {
        List<Map> list=wmsPrinterMapper.findAllbywarehouseid(id);
        return list;
    }

    @Override
    public void beathdelete(List<Long> list) {
        wmsPrinterMapper.beathdelete(list);
    }

    @Override
    public List<Map> getit(WmsWarehouse wmsWarehouse) {
        List<Map> list=wmsPrinterMapper.getit(wmsWarehouse);
        return list;
    }

    @Override
    public List<Map> getprintbyname(String name) {
        return wmsPrinterMapper.getprintbyname(name);
    }

    @Override
    public List<Map> getit2(WmsWarehouse wmsWarehouse) {
        return wmsPrinterMapper.getit2(wmsWarehouse);
    }
}
